package com.icehand.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 *
 * Created by icehand on 2017/5/15.
 */
@Component //在1.5.2中取消了ConfigurationProperties的locations
@ConfigurationProperties(prefix = "mysetting")
@PropertySource("classpath:/config/mysetting.properties")
@Getter
@Setter
public class MySettings {
	private String name;
}
